package commands.player

import static org.groovymud.utils.MessengerUtils.sendMessageToPlayers

stream = source.getTerminalOutput()


def target = registry.getMudObject(args[0])
def tell = args[1..args.size() - 1]
def tellstr = tell.join(' ')

if(target != null){
	
	def srcSays = "You tell ${target.getName()}: $tellstr"
	def scpSays = "${source.getName()} tells you: $tellstr"
	
	sendMessageToPlayers(source, srcSays, scpSays, target)
}else{
	stream.writeln("Cannot find ${args[0]} to tell anything to.")
}